package com.bytech.user.biz.service.blogUser;

import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bytech.common.biz.entity.base.BaseResult;
import com.bytech.common.biz.entity.blogUser.BlogUser;
import com.bytech.common.biz.entity.blogUser.BlogUserAgent;
import com.bytech.common.biz.entity.blogUser.BlogUserLoginDto;

/**
 * @Author Zhao
 * @Create 2021-07-26
 */
public interface BlogUserService extends IService<BlogUser> {

    BlogUser getByToken(String token);

    List<BlogUser> getByIds(Set<String> userIds);

    BaseResult<BlogUser> login(BlogUserLoginDto loginDto);

    BaseResult<BlogUser> register(BlogUser blogUser);

    BaseResult<BlogUser> modifyUser(BlogUser blogUser);

    BaseResult<BlogUser> modifyUserByAgent(BlogUserAgent blogUserAgent);
}
